package com.simteek.testspringdata.repository;

import com.simteek.testspringdata.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface UserRepository extends MongoRepository<User, String> {

    public List<User> findByFirstNameLike(String firstName);
    public List<User> findByLastNameLike(String lastName);
    public List<User> findByAge(int age);
}
